package cn.wygandwdn.learn.controller;

import cn.wygandwdn.learn.service.TechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: WYG
 * @time: 2021/5/6 19:49
 */
@RestController
@RequestMapping("/api/technology")
public class TechnologyController {
    private TechnologyService technologyService;
    @Autowired
    public void setTechnologyService(TechnologyService technologyService) {
        this.technologyService = technologyService;
    }

    @GetMapping("getInfo")
    public String getInfo(String key) {
        String technologyInfo = technologyService.getTechnologyInfo(key);
        return technologyInfo;
    }
}
